<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <style>
      header{
        height: 79px;
        line-height: 79px!important;
      }
      .aui-pull-left,
      .aui-pull-right{
            height: 79px!important;
      }
      .pageTitle{
        letter-spacing: 8px;
        font-weight: bold;
        color: #000;
      }
      .aui-pull-left{
        padding-left: 28px!important;
      }
      .aui-pull-right{
        padding-right: 28px!important;
      }
      .backBtn,
      .cancelBtn{
        width: 30px;
        height: 30px;
      }
      .backBtn{
        margin-left: 28px;
        background: url(../../image/backBtn@2x.png) no-repeat center;
        background-size: 100%;
      }
      .cancelBtn{
        margin-right: 28px;
        background: url(../../image/seachBtn@2x.png) no-repeat center;
        background-size: 100%;
      }
          .mapsInner{
            width: 100%;
            background: #fff;
          }
          .addressTitle{
            width: 100%;
            height: 575px;
            position: fixed;
            left: 0px;
            z-index: 9000;
            overflow-y: scroll;
            -webkit-overflow-scrolling: touch;
          }
          .aui-media-list .aui-list-item-inner{
             height: 92px;
             padding-top: 20px;
          }
          .aui-list .aui-list-item{
               padding-left: 20px;
          }
          .addressTitltName{
            font-size: 20px!important;
            font-weight: bold;
          }
          .loacalPic{
            width: 30px;
            margin: 0 15px 0 0;
          }
          .aui-list-item-text{
            font-weight: 600;
          }
          .aui-list,.aui-list .aui-list-item {
               background-image: linear-gradient(0,transparent,transparent 50%,transparent 50%);
               background-image: -webkit-linear-gradient(90deg,transparent,transparent 50%,transparent 50%);
          }
          .borderS{
            border-radius: 15px 15px 0 0;
            box-shadow: 0px -10px 15px rgba(140,140,140,0.5);
          }
          .slidesBottom{
             animation: slidesBottom  .3s ease forwards;
          }
          .slidesUp {
             animation: slidesUp  .3s ease forwards;
          }
          @keyframes slidesBottom {
          from {top:700px;}
          to {top:64px;}
          }
          @keyframes slidesUp {
          from {top:64px;}
          to {top:575px;}
          }
          /*适配屏幕320px*/
          @media (max-width: 320px){
            .aui-list-item-text{
                font-size: 10px!important;
            }
        	}
          /*适配屏幕320px*/
      /*适配屏幕320px*/
      @media (max-width: 320px){
        .pageTitle{
          font-size: 14px;
        }
        .backBtn, .cancelBtn {
            width: 20px;
            height: 20px;
        }
        header{
          height: 53px;
          line-height: 53px!important;
        }
        .aui-pull-left,
        .aui-pull-right{
              height: 53px!important;
        }
      }
      /*适配屏幕320px*/
    </style>
</head>
<body>
     <div id="mapWinPage" v-bind:style="{height:wHeight}">
       <header class="aui-bar aui-bar-nav aui-bar-light" id="aui-header">
            <div class="aui-pull-left aui-btn" tapmode onclick="closeWin()">
                <span class="aui-iconfont backBtn"></span>
            </div>
            <div class="aui-title pageTitle">选择地址</div>
            <div class="aui-pull-right aui-btn">
                <span class="aui-iconfont cancelBtn"></span>
            </div>
        </header>
        <div class="mapsInner" v-bind:style="{height:wwHeight}" v-show="isShow">

        </div>
        <ul class="aui-list aui-media-list addressTitle" id="mapPageFooter" @click="showAddressList()"
          v-bind:style="{top : wTop}" v-bind:class="{slidesBottom:showMask1,borderS:showMask3}">
          <!-- {top:wTop,border-radius:borderR,box-shadow:boxS} -->
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
            <li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="loacalPic" >
                        <img src="../../image/main/myLoacaltion@2x.png" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title addressTitltName">半坡国际艺术区</div>
                        </div>
                        <div class="aui-list-item-text">
                          纺织城 灞桥区 纺织城西街 138号
                        </div>
                    </div>
                </div>
            </li>
        </ul>
      </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/fastclick.js"></script>
<script type="text/javascript">
    apiready = function(){
        api.parseTapmode();
        var header = $api.byId('aui-header');
        $api.fixStatusBar(header);
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        api.openFrame({
            name: 'main_seclectAddress_frame',
            url: 'main_seclectAddress_frame.html',
            bounces: false,
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: body_h - headerPos.h - 95
            }
        })
    };
    ////初始化页面
    var app = new Vue({
        el: '#mapWinPage',
        data: {
            wH : document.documentElement.clientHeight || document.body.clientHeight,
            wHeight: '',
            wwHeight: '',
            wTop : '',
            isShow : '',
            locationLat : '',
            locationLon : '',
            showMask1 : false,
            showMask2 : false,
            showMask3 : true
        },
        methods:{
          init: function() {
            /////初始化页面高度
              //var wh = document.documentElement.clientHeight || document.body.clientHeight;
              var mapPageHeaderH = document.getElementById('aui-header').offsetHeight;
                  this.wHeight = (this.wH) + 'px';
                  this.wwHeight = (this.wH-mapPageHeaderH) + 'px';
                  this.wTop = (this.wH-92) +'px';
             },
             showAddressList : function(){
                 if(!this.showMask1){
                   this.showMask1 = !this.showMask1;
                   this.showMask3 = !this.showMask3;
                   api.setFrameAttr({
                       name: 'main_seclectAddress_frame',
                       hidden: true
                   });
               }else{
                 this.showMask1 = false;
                 this.showMask2 = !this.showMask2;
                 this.showMask3 = true;
                 api.setFrameAttr({
                     name: 'main_seclectAddress_frame',
                     hidden: false
                 });
               }

             }
         },
         mounted: function() {
             this.init();

         }
    });
    function closeWin(){
        api.closeWin({
        });
    }
</script>
</html>
